<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group(['middleware'=>'login'],function(){
	// 主页显示
	Route::get('/','admin\RvceoController@index');
	// 报警显示
	Route::controller('/admin/rvceo','admin\RvceoController');
	// 申请代理商管理
	Route::controller('/admin/agent','admin\AgentController');
	//员工账号管理
    Route::controller('/admin/staff','admin\StaffController');
	// 用户管理
	Route::controller('/admin/user','admin\UserController');
	// 网关管理
	Route::controller('/admin/gateway','admin\GatewayController');
	// 区域管理
	Route::controller('/admin/area','admin\AreaController');
	// 建筑管理
	Route::controller('/admin/building','admin\BuildingController');
	// 位置管理
	Route::controller('admin/room','admin\RoomController');
	// 烟感信息处理
	Route::controller('/admin/device','admin\DeviceController');
	// 供应商
	Route::controller('/admin/supplier','admin\SupplierController');
	// 模组
	Route::controller('/admin/module','admin\ModuleController');
    // 设备类型
    Route::controller('/admin/type','admin\TypeController');
	// 通知设置
    Route::controller('/admin/noti','admin\NotiController');
    // 测试烟感
    Route::controller('/admin/lora','admin\LoraController');
    // 报警消息
    Route::controller('/admin/log','admin\LogController');
});
	// 注册代理商
	Route::controller('/admin/reg','admin\RegController');
	// 消息推送
	Route::controller('admin/message_push','admin\MessageController');
	// 登录
	Route::controller('/admin/login','admin\LoginController');
	// 验证码
	Route::get('/code','CodeController@index');